import fetch from '@/utils/request';

const API_BALANCE_URL = '/api/user/finance/balance';
/**
 * 银行卡账户API对象
 * @module BalanceApi
 */
const BalanceApi = {
	/**
	 * @function query
	 * @description 查询结算账户清单
	 * @param  {Object} query 查询参数对象
	 * @param  {Object} param 分页参数对象
	 */
	query: (query, param) => fetch.request({
		url: `${API_BALANCE_URL}/query`,
		method: 'POST',
		data: {
			query: query,
			param: param
		},
	}),
	/**
	 * @function get
	 * @description 查询结算账户
	 */
	get: () => fetch.request({
		url: `${API_BALANCE_URL}/get`,
		method: 'GET',
	}),
}
export default BalanceApi;